Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Setup automatic test when PR is open on main #48

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

gabrielegranello
Copy link
Collaborator

What does this PR do?

It allows to automatically run rpm run test when a PR is made to merge into main.
It does so by creating a test-on-pull-request.yml file inside the folder .github/worflows.
Explanation of the Workflow:

on: pull_request: This specifies that the workflow should run on a pull request event.
jobs: Defines the jobs that will run as part of this workflow.
runs-on: ubuntu-latest: The environment where the job will run, here it's an Ubuntu machine.
steps: The specific steps the job will execute:
Checkout repository: This step checks out your repository so the workflow can access the code.
Set up Node.js: This step installs the specified version of Node.js.
Install dependencies: This step runs npm install to install the necessary dependencies.
Run tests: Finally, this step runs your test script using npm run test.

Before merging we should now see the test being passed:
Screenshot 2024-08-08 at 17 36 13

Gabriele Granello and others added 3 commits August 8, 2024 17:23
Copy link

vercel bot commented Aug 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fairhold-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2024 3:37pm

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! 👏

@gabrielegranello gabrielegranello merged commit 8ccd3fd into main Aug 9, 2024
3 checks passed
@gabrielegranello gabrielegranello deleted the gg/set-workflow branch August 20, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants